const router = require('koa-router')()
const {
        loanList,
        createLoan,
        updateLoan,
        deleteLoan,
        submitToApprove,
        queryLoan 
    } = require('../controllers/loan');
router.prefix('/loan')
    .get('/list', loanList) //申请管理 -查询
    .post('/create', createLoan) //贷款申请
    .put("/update", updateLoan) //申请管理 -编辑
    .delete("/delete/:delId", deleteLoan) //申请管理 -删除
    .post("/submitToApprove", submitToApprove) //申请管理 -提交审核
    .get("/query", queryLoan) //初审-查看详情
module.exports = router